#ifndef BLOGITEM_H
#define BLOGITEM_H

#include <QStandardItem>
#include <QUrl>
#include <QDate>
#include <QSettings>


class BlogItem : public QStandardItem
{
public:
    BlogItem(QString name, QUrl url, QSettings* settings = NULL);
    virtual ~BlogItem() = 0;

    //Virtual interface
    virtual void defaultProcessing();

    //Getters / Setters
    QString getName() const;
    QUrl    getUrl() const;

    //Fonts corresponding to the downloaded and not downloaded status
    static const QFont notDownloadedFont; //Move these to item
    static const QFont downloadedFont; //Move these to item

protected:
    QString     _name;
    QUrl        _url;
    QSettings*  _settings;
};

#endif // BLOGITEM_H
